﻿using SqlSugar;

namespace Bean.Entity;

/// <summary>
///     政策关键字类
/// </summary>
[SugarTable("Policy_SysRule")]
public class PolicySysRule
{
    /// <summary>
    ///     系统政策规则
    /// </summary>

    [SugarColumn(IsPrimaryKey = true, ColumnName = "SysPolicyRuleId")]
    public long SysPolicyRuleId { get; set; }

    /// <summary>
    ///     规则名称
    /// </summary>
    [SugarColumn(ColumnName = "SysRuleName")]
    public string SysRuleName { get; set; }

    /// <summary>
    ///     政策关键字
    /// </summary>
    [SugarColumn(ColumnName = "PolicyKeyWord")]
    public string PolicyKeyWord { get; set; }

    /// <summary>
    ///     供应商id
    /// </summary>
    [SugarColumn(ColumnName = "SID")]
    public long SID { get; set; }

    /// <summary>
    ///     规则文本
    /// </summary>
    [SugarColumn(ColumnName = "RuleText")]
    public string RuleText { get; set; }

    /// <summary>
    ///     适用展位
    /// </summary>
    [SugarColumn(ColumnName = "ActiveExhibit")]
    public string ActiveExhibit { get; set; }

    /// <summary>
    /// 适用展位
    /// </summary>
    //[SugarColumn(ColumnName = "ActiveExhibitDesc")]
    //public string ActiveExhibitDesc { get; set; }

    /// <summary>
    ///     更新频率
    /// </summary>
    [SugarColumn(ColumnName = "UpdateFrequency")]
    public int UpdateFrequency { get; set; }

    /// <summary>
    ///     定时执行时间点
    /// </summary>
    [SugarColumn(ColumnName = "ChangeTimeSpan")]
    public string ChangeTimeSpan { get; set; }

    /// <summary>
    ///     下次执行时间
    /// </summary>

    [SugarColumn(ColumnName = "LastExecuteTime")]
    public DateTime? LastExecuteTime { get; set; }


    /// <summary>
    /// 最后更新时间
    /// </summary>

    //public string LastExecuteTimeDesc { get { return LastExecuteTime == DateTime.MinValue || LastExecuteTime == null ? "" : LastExecuteTime?.ToString("yyyy-MM-dd HH:mm:dd"); } }
    ///// <summary>
    ///// 最后更新时间
    ///// </summary>
    //public DateTime LastUpdateTime { get; set; }
    ///// <summary>
    ///// 最后更新时间
    ///// </summary>
    //public string LastUpdateTimeDesc { get { return LastUpdateTime == DateTime.MinValue ? "" : LastUpdateTime.ToString("yyyy-MM-dd HH:mm:dd"); } }
    ///// <summary>
    ///// 修改时间
    ///// </summary>
    //public DateTime UpdateTime { get; set; }
    ///// <summary>
    ///// 修改时间
    ///// </summary>
    //public string UpdateTimeDesc { get { return UpdateTime == DateTime.MinValue ? "" : UpdateTime.ToString("yyyy-MM-dd HH:mm:dd"); } }
    ///// <summary>
    ///// 更新人
    ///// </summary>
    //public long UpdateUser { get; set; }
    ///// <summary>
    ///// 更新人
    ///// </summary>
    //public string UpdateUserName { get; set; }
    ///// <summary>
    ///// 创建人
    ///// </summary>
    //public long CreateUser { get; set; }
    ///// <summary>
    ///// 创建人
    ///// </summary>
    //public string CreateUserName { get; set; }
    ///// <summary>
    ///// 创建时间
    ///// </summary>
    //public DateTime CreateTime { get; set; }
    ///// <summary>
    ///// 状态
    ///// </summary>
    //public int Status { get; set; }

    /// <summary>
    ///     是否有效（物理删除）  0无效  1有效
    /// </summary>
    [SugarColumn(ColumnName = "IsActive")]
    public int IsActive { get; set; }
    ///// <summary>
    ///// 状态
    ///// </summary>
    //public string StatusDesc { get { return Status == 1 ? "启用" : "禁用"; } }
    ///// <summary>
    ///// 创建时间
    ///// </summary>
    //public string CreateTimeDesc { get { return CreateTime.ToString("yyyy-MM-dd"); } }
    ///// <summary>
    ///// 适用开始时间
    ///// </summary>
    //public string ApplicableStartTime { get; set; }

    ///// <summary>
    ///// 适用结束时间
    ///// </summary>
    //public string ApplicableEndTime { get; set; }

    ///// <summary>
    ///// 政策类型
    ///// </summary>
    //public PolicyRuleTypeEnum PolicyType { get; set; }

    /// <summary>
    /// 运价类型
    /// </summary>
    public string FlightFareType { get; set; }

    ///// <summary>
    ///// 运价类型
    ///// </summary>
    //public string FlightFareTypeDesc { get; set; }

    ///// <summary>
    ///// 航线白名单（“,”分割）
    ///// </summary>
    //public string AirLineWhites { get; set; }

    ///// <summary>
    ///// 航线黑名单（“,”分割）
    ///// </summary>
    //public string AirLineBlacks { get; set; }

    ///// <summary>
    ///// 航班白名单（“,”分割）
    ///// </summary>
    //public string FlightWhites { get; set; }

    ///// <summary>
    ///// 航班黑名单（“,”分割）
    ///// </summary>
    //public string FlightBlacks { get; set; }

    ///// <summary>
    ///// 销售开始日期
    ///// </summary>
    //public DateTime SaleStartDate { get; set; }

    ///// <summary>
    ///// 销售结束日期
    ///// </summary>
    //public DateTime SaleEndDate { get; set; }

    ///// <summary>
    ///// 销售开始日期
    ///// </summary>
    //public string SaleStartDateStr => SaleStartDate.ToString("yyyy-MM-dd");

    ///// <summary>
    ///// 销售结束日期
    ///// </summary>
    //public string SaleEndDateStr => SaleEndDate.ToString("yyyy-MM-dd");

    ///// <summary>
    ///// 销售时间段（多个时间段“，”分割 例如  00:00-23:00,01:30-18:30）
    ///// </summary>
    //public string SaleTimes { get; set; }

    ///// <summary>
    ///// 旅行开始日期
    ///// </summary>
    //public DateTime TravelStartDate { get; set; }

    ///// <summary>
    ///// 旅行结束日期
    ///// </summary>
    //public DateTime TravelEndDate { get; set; }

    ///// <summary>
    ///// 旅行开始日期
    ///// </summary>
    //public string TravelStartDateStr => TravelStartDate.ToString("yyyy-MM-dd");

    ///// <summary>
    ///// 旅行结束日期
    ///// </summary>
    //public string TravelEndDateStr => TravelEndDate.ToString("yyyy-MM-dd");
}